package submarine;

import javax.swing.ImageIcon;

/**
 * 水雷潜艇
 */
public class MineSubmarine extends SeaObject implements EnemyLife {

    public MineSubmarine(){
        super(63, 19);
    }

    public void move(){
        x += speed;
    }

    public ImageIcon getImage() {
        return Images.minesubm;
    }

    public Mine shootMine(){
        return new Mine(x+width, y-11);
    }

    public int getLife(){
        return 1;
    }

}
